package com.source.hotelbath.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by ZhouMeng on 2017/9/28.
 */

public class PostBean implements Parcelable {

    private int goodsId;
    private String goodsName;
    private String goodsCode;
    private int num;
    private String imgpath;
    private String unitPrice;
    private int numGet;

    public int getNumGet() {
        return numGet;
    }

    public void setNumGet(int numGet) {
        this.numGet = numGet;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getImgpath() {
        return imgpath;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath;
    }

    public String getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.goodsId);
        dest.writeString(this.goodsName);
        dest.writeString(this.goodsCode);
        dest.writeInt(this.num);
        dest.writeString(this.imgpath);
        dest.writeString(this.unitPrice);
    }

    public PostBean() {
    }

    protected PostBean(Parcel in) {
        this.goodsId = in.readInt();
        this.goodsName = in.readString();
        this.goodsCode = in.readString();
        this.num = in.readInt();
        this.imgpath = in.readString();
        this.unitPrice = in.readString();
    }

    public static final Parcelable.Creator<PostBean> CREATOR = new Parcelable.Creator<PostBean>() {
        @Override
        public PostBean createFromParcel(Parcel source) {
            return new PostBean(source);
        }

        @Override
        public PostBean[] newArray(int size) {
            return new PostBean[size];
        }
    };
}
